package com.springboot.codeminestarter.codemine.utils;

import org.springframework.util.DigestUtils;

public class Md5Util {

    public static String MD5Wrapper(String data) {

        if (StringUtil.isEmpty(data)) {
            return "";
        }
        return DigestUtils.md5DigestAsHex(data.getBytes());
    }
}
